package com.github.iot.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * TODO
 *
 * @Author: 梁声洪
 * @Date: 2019/12/23 21:04
 * @Version: v1.0.0
 */
@Entity
public class Button {

    /**
     * 主键ID
     */
    @Id(autoincrement = true)
    private Long id;

    /**
     * 展柜ID
     */
    @NotNull
    private Long showcaseId;

    /**
     * 名称
     */
    @NotNull
    private String name;

    /**
     * 开
     */
    @NotNull
    private Integer open;

    /**
     * 关
     */
    @NotNull
    private Integer close;

    /**
     * 排序 默认 0
     */
    @NotNull
    private Integer sort;

    /**
     * 状态 -1 隐藏 1 启动
     */
    @NotNull
    private Integer status;

    @Generated(hash = 499125915)
    public Button(Long id, @NotNull Long showcaseId, @NotNull String name,
            @NotNull Integer open, @NotNull Integer close, @NotNull Integer sort,
            @NotNull Integer status) {
        this.id = id;
        this.showcaseId = showcaseId;
        this.name = name;
        this.open = open;
        this.close = close;
        this.sort = sort;
        this.status = status;
    }

    @Generated(hash = 734928667)
    public Button() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShowcaseId() {
        return showcaseId;
    }

    public void setShowcaseId(Long showcaseId) {
        this.showcaseId = showcaseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    public Integer getClose() {
        return close;
    }

    public void setClose(Integer close) {
        this.close = close;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}